package com.lanou.renrenxin.base;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.inputmethod.InputMethodManager;

/**
 * Created by zy on 16/3/2.
 */
public abstract class BaseFragment extends Fragment{
    private InputMethodManager inputMethodManager;
    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
        initView();
        setupView();
    }


    //初始化控件
    protected abstract void initView();

    //设只属性监听
    protected abstract void setupView();
}
